﻿using System.Net;

namespace ChatClientApp.Classes
{
    public class ChatMessage
    {
        string nickname;
        string[] message;
        IPEndPoint ip;

        public ChatMessage(string nick, string[] mess, IPEndPoint ipe)
        {
            this.nickname = nick;
            this.message = mess;
            this.ip = ipe;
        }

        public string Nickname
        {
            get { return nickname; }
            set { nickname = value; }
        }

        public string[] Message
        {
            get { return message; }
            set { message = value; }
        }

        public IPEndPoint Ip
        {
            get { return ip; }
            set { ip = value; }
        }
    }
}
